<style>
    .help-block {
        display: block;
        margin-top: 5px;
        margin-bottom: 10px;
        color: #737373;
    }
</style>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/save')}" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$vo.id}" />
    <table cellpadding="4" cellspacing="0" border="0" class="table-form">
        <tr>
            <th width="150">活动名称</th>
            <td><input type="text" class="textinput requireinput"  name="name" size="60" value="{$vo.name}"/></td>
        </tr>
        <tr>
            <th width="150">活动链接</th>
            <td><input type="text" class="textinput requireinput"  name="link" size="60" value="{$vo.link}"/></td>
        </tr>
        <tr>
            <th width="150">关键词</th>
            <td><input type="text" class="textinput requireinput"  name="keywords" size="60" value="{$vo.keywords}"/></td>
        </tr>
        <tr>
            <th width="150">海报</th>
            <td>
                <iframe id="post" src="{:U('Activity/poster')}&id={$vo.id}" width="500" height="650"
                        frameborder="0"></iframe>
            </td>
        </tr>
        <tr>
            <th width="150">APP ID</th>
            <td><input type="text" class="textinput requireinput"  name="app_id" size="60" value="{$vo.app_id}"/></td>
        </tr>
        <tr>
            <th width="150">APP SECRET</th>
            <td><input type="text" class="textinput requireinput"  name="app_secret" size="60" value="{$vo.app_secret}"/></td>
        </tr>
        <tr>
            <th width="150">引导关注素材链接</th>
            <td><input type="text" class="textinput requireinput"  name="guide" size="60" value="{$vo.guide}"/></td>
        </tr>
        <tr>
            <th width="150">活动时间</th>
            <td>
                {$start_date}{$end_date}
                <br>
                不符合条件提示语：<input type="text" name="date_msg" value="{$vo.date_msg}">
            </td>
        </tr>
        <tr>
            <th>活动奖励类型</th>
            <td>
                <input type="radio" name="award_type" value="1" <?=$vo['award_type'] == 1?'checked = "checked"':''?>/>积分
                <input type="radio" name="award_type" value="2" <?=$vo['award_type'] == 2?'checked = "checked"':''?>>红包
                <input type="radio" name="award_type" value="3" <?=$vo['award_type'] == 3?'checked = "checked"':''?>>卡券
            </td>
        </tr>

        <tr>
            <th>活动奖励</th>
            <td>
                首次关注<input type="text" class="textinput" name="award_first_min" value="{$vo.award_first_min}"> 至 <input type="text" class="textinput" name="award_first_max" value="{$vo.award_first_max}"><br>
                一级关注<input type="text" class="textinput" name="award_one_min" value="{$vo.award_one_min}"> 至 <input type="text" class="textinput" name="award_one_max" value="{$vo.award_one_max}"><br>
                二级关注<input type="text" class="textinput" name="award_two_min" value="{$vo.award_two_min}"> 至 <input type="text" class="textinput" name="award_two_max" value="{$vo.award_two_max}"><br>
            </td>
        </tr>
        <tr>
            <th>活动参与区域</th>
            <td>
                <select name="allow_province" onChange="getCity()" id="province">
                    <option selected="true" value="">请选择省份</option>
                    <?php foreach ($province as $key => $v) { ?>
                    <option value="{$v}" <?=$v==$vo['allow_province']?'selected="true"':'';?>>{$v}</option>
                    <?php } ?>
                </select>
                <select name="allow_city" id="city">
                    <?php foreach ($cities as $city) : ?>
                    <option value="{$city}" <?=$city==$vo['allow_city']?'selected="true"':'';?>>{$city}</option>
                    <?php endforeach;?>
                </select>
                <br>
                不符合条件提示语：<input type="text" name="area_msg" id="" value="{$vo.area_msg}">
            </td>
        </tr>
        <tr>
            <th>活动参与性别</th>
            <td>
                <input type="radio" name="allow_sex" value="1" <?=$vo['allow_sex'] == 1?'checked = "checked"':''?>/>男
                <input type="radio" name="allow_sex" value="2" <?=$vo['allow_sex'] == 2?'checked = "checked"':''?>/>女
                <input type="radio" name="allow_sex" value="3" <?=$vo['allow_sex'] == 3?'checked = "checked"':''?>/>有性别
                <input type="radio" name="allow_sex" value="4" <?=$vo['allow_sex'] == 4?'checked = "checked"':''?>/>不限
                <br>
                不符合条件提示语：<input type="text" name="sex_msg" id="" value="{$vo.sex_msg}">
            </td>
        </tr>
        <tr>
            <th>参会者是否有头像</th>
            <td>
                <input type="radio" name="allow_avart" value="1" <?=$vo['allow_avart'] == 1?'checked = "checked"':''?>/>有
                <input type="radio" name="allow_avart" value="2" <?=$vo['allow_avart'] == 2?'checked = "checked"':''?>/>无
                <input type="radio" name="allow_avart" value="3" <?=$vo['allow_avart'] == 3?'checked = "checked"':''?>/>不限
                <br>
                不符合条件提示语：<input type="text" name="avart_msg" id="" value="{$vo.avart_msg}">
            </td>
        </tr>
        <tr>
            <th>首次关注提示语</th>
            <td>
                <input type="text" class="textinput" name="first_time_follow_msg" size="60" value="{$vo.first_time_follow_msg}"/>
                <span class="help-block">提示：#积分#为粉丝获得的积分,#昵称#为粉丝昵称,#上级#为其上级昵称</span>
                <span class="help-block">例如：【#昵称#】欢迎关注，你是由【#上级#】推荐，奖励你#积分#积分</span>
            </td>
        </tr>
        <tr>
            <th>推广上级提示语</th>
            <td>
                <input type="text" class="textinput" name="level_one_msg" size="60" value="{$vo.level_one_msg}"/>
                <span class="help-block">提示：#积分#为粉丝获得的积分，#总分#为粉丝总积分，#昵称#为其下级昵称</span>
                <span class="help-block">例如：你的朋友【#昵称#】关注了，奖励你#积分#积分，你现有#总分#积分</span>
            </td>
        </tr>
        <tr>
            <th>推广上上级提示语</th>
            <td>
                <input type="text" class="textinput" name="level_two_msg" size="60" value="{$vo.level_two_msg}"/>
                <span class="help-block">提示：#积分#为粉丝获得的积分，#总分#为粉丝总积分，#昵称#为其下下级昵称,#下级#为其下级昵称</span>
                <span class="help-block">例如：你的朋友【#下级#】邀请了好友【#昵称#】关注，奖励你#积分#积分，你现有#总分#积分</span>
            </td>
        </tr>
        <tr>
            <th>重复扫码提示语</th>
            <td>
                <input type="text" class="textinput" name="repeat_scan_msg" size="60" value="{$vo.repeat_scan_msg}"/>
            </td>
        </tr>
        <tr class="act">
            <th>&nbsp;</th>
            <td>
                <input type="submit" class="submit_btn" value="{%SUBMIT}" />
                <input type="reset" class="reset_btn" value="{%RESET}" />
            </td>
        </tr>
    </table>
    <div style="display: none">
        <input type="hidden" name="backgroud_path" value="{$vo.backgroud_path}" />
        <input type="hidden" name="poster_params" value = "{$vo.poster_params}" />
    </div>
</form>
<script>
    var pic_root = "<?=PIC_ROOT?>";
</script>
